package binarytree

// TreeNode structure for Nodes
type TreeNode struct {
	Data  string    // 节点用来存放数据
	Left  *TreeNode // 左子树
	Right *TreeNode // 右子树
}

// NewTreeNode return a new pointer to an empty Node
func NewTreeNode(data string) *TreeNode {
	return &TreeNode{data, nil, nil}
}
